package com.gxa.modules.app.hospital.navigation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.app.hospital.navigation.dto.FloorDto;
import com.gxa.modules.app.hospital.navigation.dto.ParkDetailDto;
import com.gxa.modules.app.hospital.navigation.dto.ParkDto;
import com.gxa.modules.app.hospital.navigation.dto.ParkGuidanceDto;
import com.gxa.modules.app.hospital.navigation.mapper.AppParkGuidanceMapper;
import com.gxa.modules.app.hospital.navigation.service.AppParkGuidanceService;
import com.gxa.modules.model.entity.hospital.ParkGuidance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 院区导航表 服务实现类
 * </p>
 *
 * @author yjl
 * @since 2022-11-12 10:51:34
 */
@Service
public class AppParkGuidanceServiceImpl extends ServiceImpl<AppParkGuidanceMapper, ParkGuidance> implements AppParkGuidanceService {

    @Autowired
    private AppParkGuidanceMapper parkGuidanceMapper;
    @Override
    public List<FloorDto> queryById(Integer id) {
        List<FloorDto> lists = this.parkGuidanceMapper.queryById(id);
        return lists;
    }

    @Override
    public ParkDetailDto selectById(Integer id) {
        ParkDetailDto parkDetailDto = this.parkGuidanceMapper.selectById(id);
        return parkDetailDto;
    }

    @Override
    public List<ParkDto> queryParkAll() {
        List<ParkDto> parkDtos = this.parkGuidanceMapper.queryParkAll();
        return parkDtos;
    }
}
